package models

import "time"

type Role struct {
	ID          int64  `gorm:"primaryKey" json:"id"`
	Name        string `gorm:"column:name;type:varchar(255);not null" json:"name"`
	Desc        string `gorm:"column:desc;type:varchar(255);not null" json:"desc"`
	IsAdmin     bool   `gorm:"column:is_admin;type:tinyint(1);not null" json:"is_admin"`
	Sort        int    `gorm:"column:sort;type:int(10);not null" json:"sort"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedFlag bool `gorm:"column:delete_flag;type:bool;not null;" json:"deleted_flag"`
}
